package com.leyou.user.inter.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zqq
 * @ClassName UserPageVO
 * @Description
 * @date 2020/3/25-18:35
 */
@Data
public class UserPageVO implements Serializable {

    /** 主键id */
    @ApiModelProperty(value = "id", name = "id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 创建时间 */
    @ApiModelProperty(value = "用户名或手机号", name = "createDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    /** 是否删除：0/否 1/删除  (默认值为: 0) */
    @ApiModelProperty(value = "是否删除：0/否 1/删除  (默认值为: 0)", name = "isDelete")
    private Boolean isDelete;

    /** 用户名 */
    @ApiModelProperty(value = "用户名", name = "username")
    private String username;

    /** 电话号码 */
    @ApiModelProperty(value = "电话号码", name = "phone")
    private String phone;

    /** 头像 */
    @ApiModelProperty(value = "头像", name = "headImg")
    private String headImg;

    /** 真实姓名 */
    @ApiModelProperty(value = "真实姓名", name = "name")
    private String name;

    /** 出生日期 */
    @ApiModelProperty(value = "出生日期", name = "birthDate")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthDate;

    /** 性别：0/保密 1/男 2/女  (默认值为: 0) */
    @ApiModelProperty(value = "性别：0/保密 1/男 2/女  (默认值为: 0)", name = "sex")
    private Integer sex;

    /** 是否锁定：0/否 1/锁定  (默认值为: 0) */
    @ApiModelProperty(value = "是否锁定：0/否 1/锁定  (默认值为: 0)", name = "isLocked")
    private Boolean isLocked;

    private static final long serialVersionUID = 1L;
}
